package com.zbowen.invoice.feign.api;

import com.zbowen.invoice.feign.dto.IvaBookFeignDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * feign接口 提供给其他服务远程调用
 */
@FeignClient(value = "elect-invoice")
public interface IvaBookFeignApi {

    /**
     *
     * 根据发票号码查询发票信息
     * @param vatino
     * @return
     */
    @PostMapping("/feign/ivaBook/queryInvoice")
    IvaBookFeignDto queryInvoiceStatus(String vatino);
}
